package com.woniuxy.carrental.mapper;

import com.woniuxy.carrental.entity.Warese;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author author
 * @create 2021-09-30 15:34
 */
//肖某的仓库主表
public interface WareseMapper {
    //向仓库中添加数据
    void insertWa(Warese warese);

    //修改仓库表中的数据
    void updataWa(Warese warese);

    //删除仓库表中的数据根据ID
    void deleteWa(int waid);

    //分页查询仓库表中所有数据
    public List<Warese> selectWareseByPage(@Param("warese")Warese warese, @Param("pageIndex") int pageIndex,
                                       @Param("pageSize") int pageSize);
    //分页查询数据条数
    public int selectCountWareseByPage(@Param("warese")Warese warese);

}
